const mongoose =require('mongoose')
mongoose.set('strictQuery', true);

mongoose.connect('mongodb://localhost:27017/vue3-demo',(err)=>{
    if(!err){
        console.log('数据库连接成功');
    }
})

module.exports =mongoose